import turtle
import random

turtle.colormode(255)
for i in range(1, 80):
    x = random.randint(-400, 400)
    y = random.randint(-400, 400)
    width = random.randint(1, 100)
    red = random.randint(0, 255)
    green = random.randint(0, 255)
    blue = random.randint(0, 255)
    turtle.fillcolor(red, green, blue)
    turtle.begin_fill()
    for j in range(1, 5):
        turtle.forward(width)
        turtle.left(90)
    turtle.end_fill()
    turtle.penup()
    turtle.goto(x, y)
    turtle.pendown()
turtle.done()
